Fix bug with conditionals in expand-file-name on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 15 Dec 2013 20:39:36 +0000 (22:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 15 Dec 2013 20:39:36 +0000 (22:39 +0200)
 src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
 Reported by Juanma Barranquero <lekktu@gmail.com>.

src/ChangeLog
src/fileio.c

index 7695a35878bf8bb367985eab303c5c06220627f2..21f3a6e70d33b7b6a39737eb0f19fca800d6d717 100644 (file)
@@ -1,5 +1,8 @@
 2013-12-15  Eli Zaretskii  <eliz@gnu.org>
 
+       * fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
+       Reported by Juanma Barranquero <lekktu@gmail.com>.
+
        * process.c (Fprocess_send_eof): Don't crash if someone tries to
        open a pty on MS-Windows.  (Bug#16152)
 
index 02bde86564474a00b22ae7ea71b13d6cd5ce4d3d..47736d2b1b7232340562c4b8121f7212b8c16544 100644 (file)
@@ -1168,9 +1168,8 @@ filesystem tree, not (expand-file-name ".."  dirname).  */)
              tem = build_string (newdir_utf8);
            }
          else
-#else
-           tem = build_string (newdir);
 #endif
+           tem = build_string (newdir);
          if (multibyte && !STRING_MULTIBYTE (tem))
            {
              hdir = DECODE_FILE (tem);